﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200125B RID: 4699
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SubMissionRewardScNotify : IMessage<SubMissionRewardScNotify>, IMessage, IEquatable<SubMissionRewardScNotify>, IDeepCloneable<SubMissionRewardScNotify>, IBufferMessage
	{
		// Token: 0x17003B9B RID: 15259
		// (get) Token: 0x0600D2CA RID: 53962 RVA: 0x00238051 File Offset: 0x00236251
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SubMissionRewardScNotify> Parser
		{
			get
			{
				return SubMissionRewardScNotify._parser;
			}
		}

		// Token: 0x17003B9C RID: 15260
		// (get) Token: 0x0600D2CB RID: 53963 RVA: 0x00238058 File Offset: 0x00236258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SubMissionRewardScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B9D RID: 15261
		// (get) Token: 0x0600D2CC RID: 53964 RVA: 0x0023806A File Offset: 0x0023626A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SubMissionRewardScNotify.Descriptor;
			}
		}

		// Token: 0x0600D2CD RID: 53965 RVA: 0x00238071 File Offset: 0x00236271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubMissionRewardScNotify()
		{
		}

		// Token: 0x0600D2CE RID: 53966 RVA: 0x0023807C File Offset: 0x0023627C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubMissionRewardScNotify(SubMissionRewardScNotify other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.subMissionId_ = other.subMissionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D2CF RID: 53967 RVA: 0x002380C8 File Offset: 0x002362C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SubMissionRewardScNotify Clone()
		{
			return new SubMissionRewardScNotify(this);
		}

		// Token: 0x17003B9E RID: 15262
		// (get) Token: 0x0600D2D0 RID: 53968 RVA: 0x002380D0 File Offset: 0x002362D0
		// (set) Token: 0x0600D2D1 RID: 53969 RVA: 0x002380D8 File Offset: 0x002362D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003B9F RID: 15263
		// (get) Token: 0x0600D2D2 RID: 53970 RVA: 0x002380E1 File Offset: 0x002362E1
		// (set) Token: 0x0600D2D3 RID: 53971 RVA: 0x002380E9 File Offset: 0x002362E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubMissionId
		{
			get
			{
				return this.subMissionId_;
			}
			set
			{
				this.subMissionId_ = value;
			}
		}

		// Token: 0x0600D2D4 RID: 53972 RVA: 0x002380F2 File Offset: 0x002362F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SubMissionRewardScNotify);
		}

		// Token: 0x0600D2D5 RID: 53973 RVA: 0x00238100 File Offset: 0x00236300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SubMissionRewardScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.SubMissionId == other.SubMissionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D2D6 RID: 53974 RVA: 0x00238150 File Offset: 0x00236350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.SubMissionId != 0U)
			{
				num ^= this.SubMissionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D2D7 RID: 53975 RVA: 0x002381A5 File Offset: 0x002363A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D2D8 RID: 53976 RVA: 0x002381AD File Offset: 0x002363AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D2D9 RID: 53977 RVA: 0x002381B8 File Offset: 0x002363B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SubMissionId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.SubMissionId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D2DA RID: 53978 RVA: 0x00238214 File Offset: 0x00236414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.SubMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubMissionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D2DB RID: 53979 RVA: 0x0023826C File Offset: 0x0023646C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SubMissionRewardScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.SubMissionId != 0U)
			{
				this.SubMissionId = other.SubMissionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D2DC RID: 53980 RVA: 0x002382D4 File Offset: 0x002364D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D2DD RID: 53981 RVA: 0x002382E0 File Offset: 0x002364E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.SubMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005480 RID: 21632
		private static readonly MessageParser<SubMissionRewardScNotify> _parser = new MessageParser<SubMissionRewardScNotify>(() => new SubMissionRewardScNotify());

		// Token: 0x04005481 RID: 21633
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005482 RID: 21634
		public const int RewardFieldNumber = 7;

		// Token: 0x04005483 RID: 21635
		private ItemList reward_;

		// Token: 0x04005484 RID: 21636
		public const int SubMissionIdFieldNumber = 3;

		// Token: 0x04005485 RID: 21637
		private uint subMissionId_;
	}
}
